#ifndef __CAPTURE_PWM_H
#define __CAPTURE_PWM_H

#ifdef __cplusplus
 extern "C" {
#endif

#include "mt006.h"

//#define CAPTURE_GPIO        GPIO0
//#define CAPTURE_PIN         GPIO_Pin_2
//#define CAPTURE_PIN_BIT     (1 << (CAPTURE_GPIO *8 + CAPTURE_PIN))


extern volatile uint32_t capture_pwm_hlvl;
extern volatile uint32_t capture_pwm_period;


void Capture_PWM_Init(void);
void Calculate_Duty(void);
void Capture_Duty_Task(void);



#ifdef __cplusplus
}
#endif

#endif /* __CAPTURE_PWM_H */
